package me.keiwu.pub.data.cos;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * Created by kei on 07/12/2017.
 */
@Data
public class CosResponse {

    @JSONField(name = "code")
    private Integer code;

    @JSONField(name = "message")
    private String message;

    @JSONField(name = "request_id")
    private String requestId;

    @JSONField(name = "data")
    private String data;



    public static CosResponse parse(String response) {
        return JSON.parseObject(response, CosResponse.class);
    }


}
